package nl.hanze.designpatterns.mvc.controller;

import java.awt.event.ActionEvent;

public class MenuBarController extends Controller {
	
	private MainAppGuiController mainAppGuiController;
	
	public MenuBarController(MainAppGuiController mainAppGuiController){
		init(mainAppGuiController);
	}
	
	private void init(MainAppGuiController mainAppGuiController){
		this.mainAppGuiController = mainAppGuiController;
	}
	
	@Override
	public void actionPerformed(ActionEvent e){
		try{
			this.mainAppGuiController.actionPerformed(e);
		}catch(Exception ex){
			ex.printStackTrace();
		}
		
	}

}
